﻿# -*- coding:utf-8 -*-
from flask import Flask
app = Flask(__name__)
# ���������ļ�
import config
import sqlite
from exts import mail
# �����û�ģ��
#  �������ݿ�Ǩ�Ƶ����
from flask_migrate import Migrate
# �����û���ͼ
from blueprints.user import bp as user_bp
# Make the WSGI interface available at the top level so wfastcgi can get it.
wsgi_app = app.wsgi_app
# �������ļ�
app.config.from_object(config)
# ��ʼ������
mail.init_app(app)
migrate = Migrate(app)
# ע����ͼ
app.register_blueprint(user_bp)
#192.168.138.279
@app.route('/')
def hello():


    """Renders a sample page."""
    return "66666666"

if __name__ == '__main__':

    import os
    HOST = os.environ.get('SERVER_HOST', 'localhost')
    try:
        PORT = int(os.environ.get('SERVER_PORT', '5555'))
    except ValueError:
        PORT = 5555
    app.run(debug = True)
